import http from "./request";
// 活动分类列表
function getClass(){
	return http.get('/api/v1/activity_categories')
}
// 活动列表
function getList(category,name,page,per){
	return http.get('/api/v1/activities',{category,name,page,per})
}
// 活动详情
function getDetail(id){
	return http.get('/api/v1/activities/'+id)
}
// 活动报名
function baoming(activity,name,remarks){
	return http.get('/api/v1/activity_logs',{activity,name,remarks})
}
export {getClass,getList,getDetail,baoming} 